{include 'admin/layout/header_list'}
<link rel="stylesheet" href="__ADMIN_STATIC__/css/addContent.css?random={extendSetting('random')}">
<div class="addcontent">
    <form class="ajaxForm" method="post" >
        <input type="hidden" name="_method" value="put" >
        <input type="hidden" name="id" value="{if isset($rowData['id'])}{$rowData['id']}{/if}" >
        <input type="hidden" name="isLink" value="{if isset($rowData['isLink'])}{$rowData['isLink']}{/if}" >
        <table class="switchContainer table" >
            <tbody class="tb {if isset($rowData['isLink']) && $rowData['isLink']=='0' }displayTableRowGroup{/if}" >
            <tr>
                <td class="tl">
                    <span><strong>* </strong>类型</span>
                </td>
                <td>
                    {$rowData['moduleFormat']}
                </td>
            </tr>
            </tbody>
            <tbody class="tb">
            <tr>
                <td class="tl">
                    <span><strong>* </strong>名称</span>
                </td>
                <td>
                    <input class="long" name="name" type="text"  value="{if isset($rowData['name'])}{$rowData['name']}{/if}">(颜色：<input  style="width:80px;" name="style" type="text" value="{if isset($rowData['style'])}{$rowData['style']}{/if}" >)
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span><strong></strong>导航菜单</span>
                </td>
                <td>
                    <p class="article-status">
                        <input name="isMenu" type="radio" value="1" {if isset($rowData['isMenu']) && $rowData['isMenu']=='1' }checked{/if} >是
                        <input name="isMenu" type="radio" value="0" {if isset($rowData['isMenu']) && $rowData['isMenu']=='0' }checked{/if} >否
                    </p>
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span><strong></strong>新窗口打开</span>
                </td>
                <td>
                    <p class="article-status">
                        <input name="isBlank" type="radio" value="1"  {if isset($rowData['isBlank']) && $rowData['isBlank']=='1' }checked{/if}>是
                        <input name="isBlank" type="radio" value="0" {if isset($rowData['isBlank']) && $rowData['isBlank']=='0' }checked{/if} >否
                    </p>
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span><strong></strong>独立LOGO</span>
                </td>
                <td>
                    <p class="article-status">
                        <input name="logo" type="radio" value="1" {if isset($rowData['logo']) && $rowData['logo']=='1' }checked{/if} >是
                        <input name="logo" type="radio" value="0" {if isset($rowData['logo']) && $rowData['logo']=='0' }checked{/if} >否
                    </p>
                </td>
            </tr>
            </tbody>
            <tbody class="tb switchBox {if isset($rowData['isLink']) && $rowData['isLink']=='0' }displayTableRowGroup{/if}"  >
            <tr >
                <td class="tl">
                    <span>模块目录</span>
                </td>
                <td>
                    <input class="long" type="text" name="urlPath" value="{if isset($rowData['urlPath'])}{$rowData['urlPath']}{/if}">
                </td>
            </tr>
            <tr >
                <td class="tl">
                    <span>电脑版绑定域名</span>
                </td>
                <td>
                    <input class="long" type="text" name="domain_pc" value="{if isset($rowData['domain_pc'])}{$rowData['domain_pc']}{/if}">
                </td>
            </tr>
            <tr >
                <td class="tl">
                    <span> 手机版绑定域名</span>
                </td>
                <td>
                    <input class="long" type="text" name="domain_mobile" value="{if isset($rowData['domain_mobile'])}{$rowData['domain_mobile']}{/if}">
                </td>
            </tr>
            </tbody>
            <tbody class="tb switchBox" {if isset($rowData['isLink']) && $rowData['isLink']=='0' }style="display:none;"{/if} >
            <tr >
                <td class="tl">
                    <span>链接地址</span>
                </td>
                <td>
                    <input class="long" type="text" name="linkUrl" value="{if isset($rowData['linkUrl'])}{$rowData['linkUrl']}{/if}">
                </td>
            </tr>
            </tbody>
            <tr>
                <td class="tl">
                    <span><strong></strong>状态</span>
                </td>
                <td style="border-top: 1px solid #ddd;">
                    <p class="article-status">
                        <input name="disabled" type="radio" value="1" {if isset($rowData['disabled']) && $rowData['disabled']=='1' }checked{/if} >开启
                        <input name="disabled" type="radio" value="0" {if isset($rowData['disabled']) && $rowData['disabled']=='0' }checked{/if}>禁用
                    </p>
                </td>
            </tr>
        </table>
        <div class="ltcms-button">
            <button class="btns submit ajaxBtn" type="button" data-submit-url="{LTCMS_ROUTE_PREFIX}/module" data-form=".ajaxForm" data-location-url="{LTCMS_ROUTE_PREFIX}/module" data-close="5" >保存并提交</button>
            <button class="btns cancel">取消并返回</button>
        </div>
    </form>
</div>
<script src="__ADMIN_STATIC__/js/addContent.js?random={extendSetting('random')}"></script>
{include 'admin/layout/footer'}